/* Reset hero-section so it ignores .section grid rules */

.hero-background img.hero-video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* optional overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 20px;
    /* safe spacing on text */
}

body {
    font-family: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    background: #f4f4f4;
}


/* Section */

.timeline-section {
    position: relative;
    padding: 6rem 0;
    background: #f9f9f9;
    overflow: hidden;
}


/* Timeline line container */

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, white 0%, white 100%);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    transform: translateX(-50%);
    z-index: 1;
    transition: transform 0.6s ease;
}


/* Blocks */

.timeline-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin: 6rem 0;
    position: relative;
    z-index: 2;
}


/* Alternate layout */

.timeline-block:nth-child(odd) .timeline-left {
    order: 1;
}

.timeline-block:nth-child(odd) .timeline-right {
    order: 2;
}

.timeline-block:nth-child(even) .timeline-left {
    order: 2;
}

.timeline-block:nth-child(even) .timeline-right {
    order: 1;
}


/* Left big image */

.timeline-left img {
    width: 400%;
    height: 4%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* Right content */

.timeline-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-card {
    background: #ffffff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    max-width: 80%;
}

.timeline-card h3 {
    font-family: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Change to your desired font */
    font-size: 24px;
    /* Adjust size as needed */
    font-weight: bold;
    /* Optional */
    margin-bottom: 5px;
    /* Optional spacing */
}

.timeline-card p {
    font-family: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Change to your desired font */
    font-size: 16px;
    /* Adjust size as needed */
    color: #555;
    /* Optional: change text color */
}

.timeline-row {
    display: flex;
    gap: 0.5rem;
}

.timeline-row img {
    width: 30%;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}


/* Flip animations */

.timeline-flip {
    transform: rotateY(90deg);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.timeline-visible {
    transform: rotateY(0deg);
    opacity: 1;
}


/* Lightbox Modal */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.close-btn:hover {
    color: #ff4444;
}

body {
    font-family: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0px;
    background: #f9f9f9;
}

.section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 50px;
}


/* Reverse layout for even sections */

.section.even {
    grid-template-columns: 1.5fr 1fr;
}


/* Card styling */

.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 100px 20px 40px #0123ffe3;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h2 {
    margin: 0 0 15px;
    font-size: 32px;
    font-weight: 600;
    color: #333;
    font-family: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(90deg, hsl(238, 100%, 15%), oklch(91.257% 0.11555 91.728));
    /* blue → cyan */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* for Firefox */
    color: transparent;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 16px;
    border-color: #0b2da6;
    border-radius: 8px;
    /* rounded corners (optional) */
    box-shadow: 0 8px 20px rgba(28, 21, 152, 0.603);
    /* deep shadow */
    overflow: hidden;
}

table td {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
}


/* remove border from last row */

table tr:last-child td {
    border-bottom: none;
}

td:first-child {
    font-weight: bold;
    background: linear-gradient(135deg, #2196f3, #ffffff);
}


/* Small images grid */

.small-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.small-images img {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}


/* stagger effect */

.small-images img:nth-child(odd) {
    margin-top: 20px;
}

.small-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}


/* Big image */

.big-image {
    width: 90%;
    max-height: 600px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    margin: auto;
    display: block;
}

.big-image:hover {
    transform: scale(1.02);
}


/* Responsive */

@media (max-width: 768px) {
    .section,
    .section.even {
        grid-template-columns: 1fr;
    }
    .big-image {
        width: 100%;
        max-height: 350px;
    }
}


/* 📱 Mobile: wrap card + image in one big card */

@media (max-width: 768px) {
    .section {
        flex-direction: column;
        /* stack card + image */
        background: #fff;
        /* outer card background */
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }
    /* override desktop row-reverse */
    .section.odd,
    .section.even {
        flex-direction: column;
    }
    .section .card,
    .section .big-image {
        max-width: 100%;
    }
    .section .big-image {
        margin-top: 15px;
    }
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    /* full height */
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}


/* Default heading/subtitle size (desktop/tablet) */

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-top: 1rem;
}


/* ✅ Mobile adjustments */

@media (max-width: 767px) {
    .hero-content {
        margin-top: 100px;
        /* Push below navbar */
        text-align: center;
        /* optional for better look */
    }
    .hero-title {
        font-size: 1.8rem;
        /* shrink heading */
    }
    .hero-subtitle {
        font-size: 1rem;
        /* shrink subtitle */
    }
}